import request from '@/utils/request'

// 查询售票信息 (st_ticket_info)列表
export function listTicketInfo(query) {
  return request({
    url: '/st/ticketInfo/list',
    method: 'get',
    params: query
  })
}

// 查询售票信息 (st_ticket_info)详细
export function getTicketInfo(id) {
  return request({
    url: '/st/ticketInfo/' + id,
    method: 'get'
  })
}

// 新增售票信息 (st_ticket_info)
export function addTicketInfo(data) {
  return request({
    url: '/st/ticketInfo',
    method: 'post',
    data: data
  })
}

// 修改售票信息 (st_ticket_info)
export function updateTicketInfo(data) {
  return request({
    url: '/st/ticketInfo',
    method: 'put',
    data: data
  })
}

// 删除售票信息 (st_ticket_info)
export function delTicketInfo(id) {
  return request({
    url: '/st/ticketInfo/' + id,
    method: 'delete'
  })
}
